<?php
// Contact subject
$subject = $_REQUEST["subject"];
// Details
$message=$_REQUEST["detail"];

// Mail of sender
$mail_from=$_REQUEST["customer_mail"];
// From
$header="from: '".$_REQUEST['name']."' < $mail_from >";

// Enter your email address
$to ='leandro.alvarez.lpa@gmail.com';

$send_contact=mail($to,$subject,$message,$header);

if($send_contact){
	echo "Gracias, en breve recibira nuestra respuesta, para volver a la pantalla principal por favor cierre esta ventana";
}
else {
	echo "Por favor, intente mas tarde";
	echo $subject;
	echo $message;
	echo $mail_from;
	echo $header;
}
?>